// src/main.js
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'  // 持久化插件
import App from './App.vue'
import router from './router'
import axios from './plugins/axios'

const app = createApp(App)

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)   // 安装持久化插件

app.use(pinia)      // 注册 Pinia
app.use(router)

app.config.globalProperties.$axios = axios

app.mount('#app')




